
#include "xdns-data-impl.h"

using namespace std;

XdnsData::XdnsData()
{
}

XdnsData::~XdnsData()
{
}

XdnsError
XdnsData::Init(XdnsData** data)
{
    if (NULL == data)
    {
        return XE_Inval;
    }

    XdnsDataImpl* dataImpl = new (nothrow) XdnsDataImpl();
    if (NULL == dataImpl)
    {
        return XE_NoMem;
    }

    *data = dataImpl;
    return XE_Ok;
}

void
XdnsData::Release(XdnsData* data)
{
    if (data != NULL)
    {
        delete data;
    }
}

